from fastapi import status
from fastapi import HTTPException


def es_connect_url_required_exception():
    raise HTTPException(
        detail="ES Connect url must be required!",
        status_code=status.HTTP_400_BAD_REQUEST,
    )


def es_index_name_required_exception():
    raise HTTPException(
        detail="ES Index name must be required!",
        status_code=status.HTTP_400_BAD_REQUEST,
    )


def es_client_err_exception():
    raise HTTPException(
        detail="ES Client Err, Please Check!",
        status_code=status.HTTP_400_BAD_REQUEST,
    )
